import request from '../utils/request';

const baseUrl = '/user';

export default{
    login(data) {
        return request({
            url: baseUrl + '/login',
            method: "post",
            data
        })
    },
    logout(data) {
        return request({
            url: baseUrl + '/logout',
            method: "post",
            data
        })
    },
    getMeInfo(){
        return request({
            url: baseUrl + '/getMeInfo',
            method: "get"
        })
    }
}
